package com.cqjtu.eecs.entity.dto;


import com.cqjtu.eecs.entity.Academy;
import com.cqjtu.eecs.entity.Major;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode
public class MajorDTO {
    @ApiModelProperty(value = "学院代码")
    private String academyId;

    @ApiModelProperty(value = "学院名")
    private String academyName;

    @ApiModelProperty(value = "专业代码")
    private String majorCode;

    @ApiModelProperty(value = "专业名")
    private String majorName;

    @ApiModelProperty(value = "专业简介")
    private String majorBrief;

    @ApiModelProperty(value = "专业负责人")
    private String majorManager;

    public MajorDTO() {
    }

    public MajorDTO(Major major, Academy academy){
        this.academyId = academy.getAcademyId();
        this.majorCode = major.getMajorCode();
        this.academyName = academy.getAcademyName();
        this.majorName = major.getMajorName();
        this.majorBrief = major.getMajorBrief();
        this.majorManager = major.getMajorManager();
    }
}
